<el-main>
    <!--   基本信息   -->
    <el-row>
        <span>基本信息</span>
    </el-row>
    <el-row :gutter="10" type="flex">
        <el-form ref="form" :model="form" :rules="rules" label-width="140px">

            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="业务员" prop="GWGIORIU">
                    <el-input v-model="form.GWGIORIU_NAME" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="所属组织" prop="GWGIORIG">
                    <el-input v-model="form.GWGIORIG_NAME" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="招标编号" prop="GWGI001">
                    <el-input v-model="form.GWGI001"
                              readOnly
                              :disabled="!isAdd">
                        <i class="el-icon-search el-input__icon"
                           @click="openGwgi001"
                           v-show="isAdd"
                           slot="suffix"></i>
                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="项目名称" prop="GWGC022">
                    <el-input v-model="form.GWGC022" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="开标日期" prop="GWGI002">
                    <el-input v-model="form.GWGI002" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="授权代理商" prop="GWGI003">
                    <el-input v-model="form.GWGI003_NAME" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="交货期招标要求" prop="GWGI004">
                    <el-input v-model="form.GWGI004" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="交货期评分要求" prop="GWGI005">
                    <el-input v-model="form.GWGI005" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="交货期区域建议" prop="GWGI006">
                    <el-input v-model="form.GWGI006" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="质保期招标要求" prop="GWGI007">
                    <el-input v-model="form.GWGI007" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="质保期评分要求" prop="GWGI008">
                    <el-input v-model="form.GWGI008" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="质保期区域建议" prop="GWGI009">
                    <el-input v-model="form.GWGI009" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
                <el-form-item label="付款方式" prop="GWGI010">
                    <el-input v-model="form.GWGI010" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="附加费用(元)" prop="GWGI011">
                    <el-input type="number" min="0"  v-model="form.GWGI011" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="上牌费(元)" prop="GWGI012">
                    <el-input type="number" min="0" v-model="form.GWGI012" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="保险费(元)" prop="GWGI013">
                    <el-input type="number" min="0" v-model="form.GWGI013" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="物流费(元)" prop="GWGI014">
                    <el-input type="number" min="0" v-model="form.GWGI014" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="特殊配置费(元)" prop="GWGI015">
                    <el-input type="number" min="0" v-model="form.GWGI015" >

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="中标服务费(元)" prop="GWGI016">
                    <el-input v-model="form.GWGI016" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="购置税金额(元)" prop="GWGI017">
                    <el-input v-model="form.GWGI017" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="费用合计(元)" prop="GWGI018">
                    <el-input v-model="custTotal()" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="总报价(元)" prop="GWGI019">
                    <el-input v-model="form.GWGI019" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="提交时间" prop="GWGI020">
                    <el-input v-model="form.GWGI020" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="审核人员" prop="GWGI021">
                    <el-input v-model="form.GWGI021_NAME" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="审核时间" prop="GWGI022">
                    <el-input v-model="form.GWGI022" disabled>

                    </el-input>
                </el-form-item>
            </el-col>

        </el-form>
    </el-row>

    <!--   投标报价明细   -->
    <el-row style="margin-bottom:20px">
        <span>投标报价明细</span>
    </el-row>
    <el-row>
        <div class="pos-ab" style="margin-bottom: 10px;">
            <el-button type="primary" size="small"
                       @click="addGwgjData">添加
            </el-button>
            <el-button type="primary" size="small"
                       @click="delGwgjData">删除
            </el-button>
        </div>
        <div class="pos-re">
            <div class="table-responsive">
                <table id="gwgi005_gwgj_table"
                       class="layui-table"
                       lay-size="sm"
                       lay-filter="gwgi005_gwgj_table">
                </table>
            </div>
        </div>
    </el-row>

    <!-- 投标评分项目 -->
    <el-row style="margin-bottom:20px" :gutter="20">
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: left;margin-top: 10px;">
            <span>投标评分项目</span>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: left;margin-top: 10px;">
            <div class="pos-ab" style="margin-bottom: 10px;">
                <el-button type="primary" size="small"
                           @click="addGwgkData">添加
                </el-button>
                <el-button type="primary" size="small"
                           @click="delGwgkData">删除
                </el-button>
            </div>
            <div class="pos-re">
                <div class="table-responsive">
                    <table id="gwgi005_gwgk_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwgi005_gwgk_table">
                    </table>
                </div>
            </div>
        </el-col>
    </el-row>


    <el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini"
                       v-show="!detailReadOnly" @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-main>


<script>
    require(["pc/crm/gwgi005_edit"], $.noop);
</script>
